package com.github.bitsapling.sapling.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.bitsapling.sapling.entity.Post;
import com.github.bitsapling.sapling.mapper.PostMapper;
import com.github.bitsapling.sapling.service.PostService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class PostServiceImpl extends ServiceImpl<PostMapper, Post> implements PostService {
    @Resource
    private  PostMapper postMapper;


    @Override
    public boolean determinePost(Post post) {
        return postMapper.deleteById(post.getId())>0;
    }
}
